<div style="width: 100%;overflow: hidden">

<textarea #codemirror></textarea>
</div>
<button mat-raised-button color="primary" (click)="changeValue()">更新值</button>
<button mat-raised-button color="primary" (click)="getText()">获得值</button>
<button mat-raised-button color="primary" (click)="readonly()">readonly</button>
<div>{{text}}</div>